//
//  User.h
//  Supervisor
//
//  Created by 小宇 on 2017/5/12.
//  Copyright © 2017年 北京怀教网络科技股份有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, LoginState){
    LoginIn = 1,
    LoginOut = 0
};
@interface User : NSObject
+ (instancetype)shareInstance;

- (void)loginIn;

- (void)loginOut;

- (LoginState)getLoginState;

- (User *)getUser;

- (NSString *)getUserAccessToken;

- (NSString *)getUserName;

- (NSString *)getUserOrignName;

- (NSString *)getUserFace;

- (void)removeUserName;

- (NSString *)getPassWord;

- (void)changePassWord:(NSString *)pwd;

- (void)changeUserFace:(NSString *)userface;

- (NSString *)getUserId;

- (void)setUserName:(NSString *)userName passWord:(NSString *)PassWord accessToken:(NSString *)accessToken userId:(NSString *)userId userFace:(NSString *)userFace userOrignName:(NSString *)userOrignName;
@end
